package cn.dazhou.andserverdemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.yanzhenjie.andserver.AndServer

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        findViewById<Button>(R.id.startBtn).setOnClickListener { AndServerEngine.startup() }
        findViewById<Button>(R.id.stopBtn).setOnClickListener { AndServerEngine.shutdown() }
    }
}